package io.renren.modules.app.service.impl;

import io.renren.modules.app.dao.ImGroupUserDao;
import io.renren.modules.app.entity.ImGroupUserEntity;
import io.renren.modules.app.service.ImGroupUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;


@Service("imGroupUserService")
public class ImGroupUserServiceImpl extends ServiceImpl<ImGroupUserDao, ImGroupUserEntity> implements ImGroupUserService {
    @Autowired
    private ImGroupUserDao imGroupUserDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ImGroupUserEntity> page = this.page(
                new Query<ImGroupUserEntity>().getPage(params),
                new QueryWrapper<ImGroupUserEntity>()
        );

        return new PageUtils(page);
    }

}
